﻿@model IEnumerable<Wicresoft.UnifyShow.Business.SelfBreakDwonModel>

<ul class="treeview" id="bdTree">
    @foreach (var item in Model)
    {
        if (item.ParentID==0 || item.ParentID==null) 
        { 
        <li class="Category"><span>@item.LvlName</span>
            <ul>
                @foreach(var item1 in Model)
                {
                    if(item1.ParentID==item.ID)
                    {
                        <li>
                            <span><a href="#@item1.ID" class="node" data-id="@item1.ID">@item1.LvlName</a></span>
                        </li>
                    }
                }
            </ul>
        </li> 
       }                 
    }
</ul>
